<%@ page import="java.util.concurrent.ConcurrentHashMap" %>
<%@ page import="ztc.common.StuBean" %>
<%@ page import="java.util.Set" %>
<%@ page import="ztc.common.UserBean" %>
<%--
  Created by IntelliJ IDEA.
  User: ztc
  Date: 16-3-31
  Time: 上午9:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title></title>
    <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/img/favicon.ico" />
  </head>

  <body>
<%
  if(application.getAttribute("sessionID")!=null){
    ConcurrentHashMap<String,ConcurrentHashMap<String,StuBean>> aMap=
            (ConcurrentHashMap<String, ConcurrentHashMap<String, StuBean>>) application.getAttribute("sessionID");
    Set aSet=aMap.keySet();
    for(Object aS:aSet){
      out.println("<h2>"+ aS +"</h2>");
      ConcurrentHashMap<String,StuBean> sMap=aMap.get(aS);
      Set sSet=sMap.keySet();
      for(Object sS:sSet){
        StuBean stu=sMap.get(sS);
        if(stu!=null)
          out.println("<h3>"+stu.getName()+" "+stu.getSex()+"</h3>");
        else
          out.println("<h3>"+null+"</h3>");
      }
    }
  }
%>
  <a href="/qr/issuance.jsp">发布签到</a>
  </body>
</html>
